package com.seven.bus.utils;

import cn.hutool.core.lang.tree.Node;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.*;

/**
 * @Author seven
 * @Date 2021/1/13 9:33
 * @Description
 * @Version 1.0
 */
public class Demo {
    public static void main(String[] args) {
        HashMap<String, List<Integer>> line = new HashMap<>();
        line.put("117", Arrays.asList(2, 4, 6, 5));
        line.put("220", Arrays.asList(6, 8, 7, 5));
        line.put("221", Arrays.asList(7, 2, 6, 8, 9));
        int start = 2;
        int end = 5;
        line.forEach((k, v) -> {
            //直达线路
            if (v.contains(start) && v.contains(end)) {
                System.out.println(v);
            }
            //换乘一次
            if (v.contains(start)) {
            }
        });

    }
}



